package com.suntront.module_login.main

import com.mtjsoft.www.kotlinmvputils.base.BaseViewModel
import com.mtjsoft.www.kotlinmvputils.event.SingleLiveEvent

/**
 * @author mtj
 * @Package com.suntront.module_login.main
 * @date 2020-05-26 09:11:28
 */

class MainViewModel : BaseViewModel() {

    private val firstTime: SingleLiveEvent<Long> = SingleLiveEvent()

    fun getfirstTimeValue(): Long {
        return if (firstTime.value == null) 0L else firstTime.value!!
    }

    fun setfirstTimeValue(long: Long) {
        firstTime.postValue(long)
    }
}